<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.inc" %>    
<%@ page language="java" import="com.feeyin.radar.crm.model.CodeStore" %>
<%@ page language="java" import="com.feeyin.radar.sys.model.Users" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style1.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./js/calendar.js"></script>
<script type="text/javascript" src="./js/form.js"></script>
<script type="text/javascript" src="./js/jquery.js"></script>
<script type="text/javascript" src="./js/business/contractcase.js"></script>
<script type="text/javascript" language="javascript">

function back(){
	window.location.href = "./contract.do?action=getMyContractCaseOrDepts&isDept="+($("#isDept").val());
	window.location.target = "main";
}
</script>
</head>
<body onload="">
<form name="caseDetail" action="" method="post" enctype="multipart/form-data">
	<table class="table_frame">
		<tr>
			<td>
				<table class="table_title1">
					<tr>
						<td class="title_lab">案件详细</td>
					</tr>
					<tr>
						<td align="center" valign="bottom">
							<input class="btn_submit" type="button" value="提交" onclick="" hidefocus="true"/>
                            <input class="btn_back" type="button" value="取消并返回" onclick="back()" hidefocus="true"/>
						</td>
					</tr>
					<tr><td height="2"></td></tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table class="table_title2">
					<tr>
						<td>
							<table class="table_add">
								<tr><td colspan="6" class="title_top">案件基本信息</td></tr>
								<tr>
									<td class="title">案件类型：</td>
									<td class="">
										<input id="caseType" name="caseType" class="input_long" type="text" value="${detail.typeName}" readonly/>
									</td>
									<td class="title">案源人：</td>
									<td class="">
										<input id="caseMan" name="caseMan" class="input_long" type="text" value="${detail.caseMan}" readonly="readonly"/>&nbsp;
									</td>
									<td class="title">案号：</td>
									<td class="">
										<input id="caseCode" name="caseCode" class="input_long" type="text" value="${detail.caseCode}" readonly="readonly"/>&nbsp;
									</td>
								</tr>
							    <tr>
									<td class="title">案件阶段：</td>
									<td class="">
										<input id="processName" name="processName" class="input_long" type="text" value="${detail.processName}" readonly/>
										<input id="processId" name="processId"  type="hidden" value="${detail.processId}" readonly/>
									</td>
									<td class="title">申请号：</td>
									<td class="">
										<input id="applicationCode" name="applicationCode" class="input_long" type="text" value="${detail.applicationCode}" readonly="readonly"/>&nbsp;
									</td>
									<td class="title">申请日：</td>
									<td class="">
										<input id="applicationDate" name="applicationDate" class="input_long" type="text" value="${detail.applicationDate}" readonly="readonly"/>&nbsp;
									</td>
								</tr>
								 <tr>
									<td class="title">实用新型名：</td>
									<td class="">
										<input id="description" name="description" class="input_long" type="text" value="${detail.description}" readonly/>
									</td>
									<td class="title">案源日：</td>
									<td class="">
										<input id="caseDate" name="caseDate" class="input_long" type="text" value="${detail.caseDate}" readonly="readonly"/>&nbsp;
									</td>
									<td class="title">立案日：</td>
									<td class="">
										<input id="liAnDate" name="liAnDate" class="input_long" type="text" value="${detail.liAnDate}" readonly="readonly"/>&nbsp;
									</td>
								</tr>
								<tr>
									<td class="title">代理人：</td>
									<td class="">
										<input id="saleName" name="saleName" class="input_long" type="text" value="${detail.saleName}" readonly/>
									</td>
									<td class="title">申请人：</td>
									<td class="">
										<input id="applyName" name="applyName" class="input_long" type="text" value="${detail.applyName}" readonly="readonly"/>&nbsp;
									</td>
									<td class="title">提交日：</td>
									<td class="">
										<input id="tiJiaoDate" name="tiJiaoDate" class="input_long" type="text" value="${detail.tiJiaoDate}" readonly="readonly"/>&nbsp;
									</td>
								</tr>
								<tr>
									<td class="title">处理人：</td>
									<td class="">
										<input id="userName" name="userName" class="input_long" type="text" value="${userName}" readonly/>
									</td>
									<td class="title">截止日：</td>
									<td class="">
										<input id="deadLineDate" name="deadLineDate" class="input_long" type="text" value="${detail.deadLineDate}" readonly="readonly"/>&nbsp;
									</td>
									<td class="">&nbsp;</td>
									<td class="">
										&nbsp;
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
		    <td>
		        <table class="table_add">
								<tr><td colspan="1" class="title_top">流程信息</td></tr>
		                <!-- <tr>
		                 <td><input type="text"/></td>
		                 <td>
		                         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;&nbsp;<p>
		                     <img alt="" src="./images/l1.gif"><p>
		                 </td>
		                 <td><input type="text"/></td>
		                </tr>
		               -->
		                   <!-- <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aaaaa&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							           <p><img alt="" src="./images/s1.gif">-->
		               <c:set var="tdInput" value="0"/>
		               <tr>
		               <td>
		                 <c:forEach var="diagram" items="${diagramList}">
		                     <c:if test="${tdInput>3}">
		                           <c:set var="tdInput" value="0"/>
		                           <p>
		                     </c:if>
		                      <c:if test="${diagram.trialType=='0'}">
							       ---------->
							      <select id="process" onchange="" name="process">
							         <option selected value=0>----------请选择----------</option> 
							         <c:forEach var="subProcess" items="${diagram.crossProcess}">
							               <OPTION value="${subProcess.id }">${subProcess.name }</OPTION>
							         </c:forEach>
							       </select>
							       <c:set var="tdInput" value="${tdInput+1}"/>
							 </c:if>
		                     <c:if test="${diagram.trialType=='1'}">
							       <img alt="" src="./images/s1.gif">
							       <input type="text" value="${diagram.process.name}" disabled/>
							       <c:set var="tdInput" value="${tdInput+1}"/>
							 </c:if>
							 <c:if test="${diagram.trialType==null}">
							       <input type="text" value="${diagram.process.name}" disabled />
							       <c:set var="tdInput" value="${tdInput+1}"/>
							 </c:if>
		                 </c:forEach>
		                 </td>
		                 </tr>
		        </table>
		</td>
		</tr>
        <tr>
			<td>
				<table class="table_title2">
					<tr>
						<td>
							<table class="table_add">
								<tr>
									<td class="title_top" width="60">附件信息</td>
									<td class="title_top">
									&nbsp;
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
						<table id="table1" class="table_style">
							<tr>
							    <td class="title">&nbsp;</td>
								<td class="title" width="80%">附件名称</td>
							</tr>
							
							<c:forEach var="attach" items="${attachList}">
							<tr>
							    <td><a href="">下载</a></td>
								<td>
								${attach.filePath}
								</td>
						
							</tr>
							</c:forEach>
						</table>
						</td>
					<tr>
				</table>
			</td>
		</tr>
	</table>
	<input type="hidden" id="isDept" value="${isDept}"/>
</form>
</body>
</html>